package yyy.ab.common.converter;

import org.springframework.core.convert.converter.Converter;

/**
 *
 */
public class IntegerConverter implements Converter<String, Integer> {
    @Override
    public Integer convert(@SuppressWarnings("NullableProblems") String s) {
        if ("null".equals(s)) {
            return null;
        } else {
            return Integer.valueOf(s);
        }
    }
}
